package utilities;

import java.util.List;

import javax.swing.JTextField;

import org.jdesktop.swingx.autocomplete.AutoCompleteDecorator;


public class AutoCompleteTextBox extends JTextField
{
	private List<String> data;
	
	public AutoCompleteTextBox()
	{
		super();
	}

	public List<String> getData() {
		return data;
	}

	public void setData(List<String> data) {
		this.data = data;
	}
	
    public void setAutoCompleteFeature(boolean cond)
    {
    	AutoCompleteDecorator.decorate(this,data,cond);
    }
	
	
	
}


